<template>
	<view class="container">
		<h2 class="textTlt">排座帮手</h2>
		<ul class="pz_list">
			<li @click="changePath('./paixu')">
				<div class="box">
					<h3>排序</h3>
					<p>——随机安排顺序</p>
				</div>
			</li>
			<li @click="changePath('./fenzu')">
				<div class="box">
					<h3>分组</h3>
					<p>——随机分配小组</p>
				</div>
			</li>
		</ul>
		<div class="fixBottom">
			<div class="my">
				<u-button  text="我的参与" type="info" size="large" @click="toMy()"></u-button>
			</div>
			<div class="btns">
				<u-button openType="share" text="分享排序" type="warning" size="large"></u-button>
			</div>
		</div>
		<u-toast ref="uToast"></u-toast>
	</view>
</template>

<script>
	export default {
		name: 'headcomd',
		data() {
			return {
				n: 100
			};
		},
		
		onLoad(options) {
			if (!options) {
				this.infoScene = 'default';
			} else {
				this.n = options.n; 
			}
		},
		onShareAppMessage(options) {
			let that = this
			let shareObj = {
			    title: '排座助手',
			    path: 'pages/huodong/paizuo/index',
			    imageUrl: ''   
			};
			return shareObj
		},
		computed: {
			
		},
		mounted() {
			
		},
		watch: {
			
		},
		created() {
			let that = this;
		},
		methods: {
			changePath(path){
				uni.navigateTo({
					url: path
				})
			},
			toMy(){
				let that = this
				uni.navigateTo({
					url: "./my"
				})
			}
		}
	};
</script>

<style>
	@import url(./index.css);
</style>
